!function(t,o,n){t(function(){t('a[href^="#"]').on("click",function(n){if("1"===t(this).attr("data-op3-smooth-scroll")){let i=this.hash;t("html, body").animate({scrollTop:t(i).offset().top},1500,function(){o.location.hash=i}),n.preventDefault()}})})}(jQuery,window,document);!function(t,e,a){"use strict";var i=function(a){if(function(){var e=!1,a=t(this).find("input.op3-element-input-edit-text");return a.parent(".op3-element-input-edit").siblings(".op3-element-input-edit-error").remove(),a.each(function(a,i){var o=t(i);if("text"===o.attr("type")&&o.attr("required")&&""===o.val()||"checkbox"===o.attr("type")&&o.attr("required")&&!o.is(":checked")){var n=o.attr("data-op3-validation-message")||o.attr("data-op-validation-message");o.closest(".op3-element-input-wrapper").append('
'+n+"
"),e=!0}}),e}.call(this))a.preventDefault();else{if(this.checkValidity()){var i=t(this).find("[name]:not(:disabled)").attr("disabled","disabled"),o=function(){var a={};return t(this).each(function(){var e=t(this).attr("name");if(e&&"op3-dummy"!==e&&"optin-gdpr-activate"!==e&&!/^optin-post-action/.test(e)){var i=t(this).val();if("checkbox"===t(this).attr("type")||"radio"===t(this).attr("type")){var o=t(this),n=o.is(":checked"),r=o.is(":visible"),s=o.closest("fieldset"),p=s?s.closest("[data-op3-extra-field]").attr("data-op3-extra-field"):"0";if(n||!r||p?n||r?!n&&p&&(i=""):i=null:i=!1,Number(p))i=a[e]?a[e]+","+i:i;else if(a[e]instanceof Array)a[e].push(i),i=a[e];else if(a[e]){var l=[a[e]];l.push(i),i=l}}"string"==typeof i&&(i=(i=i.replace(",,",",")).replace(/(^,)|(,$)/g,"")),a[e]=i,"optin-gdpr-consent-1"===e&&(a["optin-gdpr-message-1"]=t(this).closest("label").text()),"optin-gdpr-consent-2"===e&&(a["optin-gdpr-message-2"]=t(this).closest("label").text())}}),a["optin-button-message"]=t(this).closest("form").find('.op3-element[data-op3-element-type="button"] .op3-text-container').text(),e.OPFunnelStats&&e.OPFunnelStats.pageview_record_id&&(a.pageview_record_id=e.OPFunnelStats.pageview_record_id),a}.call(i);if(!o.timezone&&("everwebinar"===o["optin-integration"]||"webinarjam"===o["optin-integration"])){var s=(new Date).getTimezoneOffset();s=0===s?0:-s,o.timezone=s}t(this).find('[data-op3-element-type="button"] a').removeAttr("href").blur(),t.ajax({url:t(this).attr("action"),type:"post",data:o,success:n.bind(i),error:r.bind(i),beforeSend:p.bind(this)})}else t(this).find('[type="submit"]').click();a.preventDefault()}},o=function(e){t(this).attr("href")&&t(this).closest("form").submit(),e.preventDefault()},n=function(i,o,n){var r={},p="";t(this).each(function(){var e=t(this);r[e.attr("name")]=e.val();var a="";a=e.data("op-url-mapping")?e.data("op-url-mapping")?e.data("op-url-mapping"):e.attr("name"):e.data("op3-url-mapping")?e.data("op3-url-mapping"):e.attr("name"),e.is(":visible")&&(p+="&"+a+"="+e.val())});var l=t(this.context).find('.op3-element[data-op3-element-type="button"]');if(s(l),e.OPDashboardPixels&&"1"===e.OPDashboardPixels.enableLeadEvent&&"failed"!==i.data.recaptcha){let t={email:i.data.formParams.email||"",first_name:i.data.formParams.first_name||"",last_name:i.data.formParams.last_name||""},e="OP3_Lead"+Date.now();t=Object.entries(t).reduce((t,[e,a])=>a?(t[e]=a,t):t,{}),OP3Pixels.fireFacebookEvent(e,"Lead",t)}t(this.context).closest(".op3-element ").find(".op3-form-notification").remove(),i&&i.data&&i.data.responseData&&-1!==["everwebinar","webinarjam"].indexOf(r["optin-integration"])&&(OP3.Cookie.set("op3-webinar-response",JSON.stringify(i.data.responseData),{expires:1}),i.data.formParams.timezone&&isNaN(i.data.formParams.timezone)&&OP3.Cookie.set("op3-webinar-timezone",i.data.formParams.timezone,{expires:1})),i&&i.data&&i.data.responseData&&-1!==["demio"].indexOf(r["optin-integration"])&&OP3.Cookie.set("op3-demio-webinar-response",JSON.stringify(i.data.responseData),{expires:1});var d=JSON.stringify(r);if(a.cookie="opb-form-params="+btoa(encodeURIComponent(d),!0)+"; path=/","notification"===r["optin-post-action"]&&r["optin-post-action-notification-text"]){var c=t(this).parent("form");t("").text(r["optin-post-action-notification-text"]).addClass("op3-form-notification").insertBefore(c),c.remove()}else if("redirect"===r["optin-post-action"]&&r["optin-post-action-redirect-url"]){var f=r["optin-post-action-redirect-url"];1*r["optin-post-action-redirect-autofill"]&&(f+=f.split("?").length>1?"&":"?",f+=p.substring(1)),e.location.href=f}else if("popoverlay"===r["optin-post-action"]){var m=r["optin-post-action-popoverlay-trigger"],u=t(this).closest(".op3-popoverlay-content").find(".op3-popoverlay-close")[0];u&&u.click(),setTimeout(function(){OP3.PopOverlay.open(m)},1e3)}else if("hidePopoverlay"===r["optin-post-action"])t(this).closest(".op3-popoverlay-wrapper").find(".op3-popoverlay-close")[0].click();else if("nextFunnelStep"===r["optin-post-action"]){var v=!!(i&&i.data&&i.data.redirect_url)&&i.data.redirect_url;1*r["optin-post-action-redirect-autofill"]&&(v+=v.split("?").length>1?"&":"?",v+=p.substring(1)),v&&(e.location.href=v)}else if("noFunnelStep"===r["optin-post-action"]){v=!!(i&&i.data&&i.data.redirect_url)&&i.data.redirect_url;1*r["optin-post-action-redirect-autofill"]&&(v+=v.split("?").length>1?"&":"?",v+=p.substring(1)),v&&(e.location.href=v)}else if("goToFunnelStep"===r["optin-post-action"]){v=!!(i&&i.data&&i.data.redirect_url)&&i.data.redirect_url;1*r["optin-post-action-redirect-autofill"]&&(v+=v.split("?").length>1?"&":"?",v+=p.substring(1)),v&&(e.location.href=v)}else if("demioRedirect"===r["optin-post-action"]){v=!!(i&&i.data&&i.data.responseData&&i.data.responseData.join_link)&&i.data.responseData.join_link;e.location.href=v}if("everwebinar"===r["optin-integration"]&&"justintime"===t(this).filter('select[name="schedule"]').find("option:selected").attr("data-webinar-type")){v=!!(i&&i.data&&i.data.responseData&&i.data.responseData.user&&i.data.responseData.user.live_room_url)&&i.data.responseData.user.live_room_url;e.location.href=v}},r=function(e,a,i){var o={},n=e.status;t(this).each(function(){var e=t(this);o[e.attr("name")]=e.val();var a="";a=e.data("op-url-mapping")?e.data("op-url-mapping")?e.data("op-url-mapping"):e.attr("name"):e.data("op3-url-mapping")?e.data("op3-url-mapping"):e.attr("name"),e.is(":visible")&&"&"+a+"="+encodeURIComponent(e.val())});var r=t(this).parent("form"),p=t(""),l=t(this.context).find('.op3-element[data-op3-element-type="button"]'),d=e.responseJSON,c="Something went wrong.";s(l),t(this.context).closest(".op3-element ").find(".op3-form-notification").remove(),409==n?(c=d&&d.message?d.message:"You are already subscribed.",p.html(c).addClass("op3-form-notification").addClass("warning-notification")):401==n||403==n?(c="API authorization error.",p.html(c).addClass("op3-form-notification").addClass("error-notification")):(c=d&&d.message?d.message:"Something went wrong.",p.html(c).addClass("op3-form-notification").addClass("error-notification")),p.insertBefore(r).animate({left:"-4px"},120).animate({left:"4px"},120).animate({left:"-4px"},120).animate({left:"4px"},120).animate({left:"0px"},120),r.find("[name]:disabled").removeAttr("disabled"),r.find('[data-op3-element-type="button"] a').attr("href","#").focus()},s=function(t){t.find('[data-op3-background="overlay"]').css("opacity",""),t.find(".submitting").remove(),t.find(".op3-text-container, .op3-subtext").css("display","")},p=function(){var e=t(this);e.find('[data-op3-background="overlay"]').css("opacity",.65),e.find(".op3-text-container, .op3-subtext").css("display","none"),e.find("a").append('')};t(function(){var e=["form","contactform"].map(function(t){return'.op3-element[data-op3-element-type="'+t+'"]'}).join(",");t(e).on("submit","form",i).on("click",'.op3-element[data-op3-element-type="button"] a',o)})}(jQuery,window,document);!function(e,t,a){"use strict";t.op3GrecaptchaInit=function(){var t=OP3.Settings.google.recaptchaSiteKey;t&&(e('[data-op3-element-type$="form"] form').each(function(){var a=e(this);grecaptcha.ready(function(){try{grecaptcha.execute(t,{action:"op3optin"}).then(function(t){a.find('[name="op3-grecaptcha-token"]').remove(),e("").attr({type:"hidden",name:"op3-grecaptcha-token",value:t}).appendTo(a);var c=e(".grecaptcha-badge");c.show(),c.css("visibility","visible")})}catch(t){a.find('[name="op3-grecaptcha-token"]').remove(),e("").attr({type:"hidden",name:"op3-grecaptcha-token",value:"invalid"}).appendTo(a)}})}),setTimeout(op3GrecaptchaInit,1e5))},e(function(){var e=OP3.Settings.google.recaptchaSiteKey;if(e&&"undefined"==typeof grecaptcha){var t=a.getElementsByTagName("script")[0],c=a.createElement("script");c.async=!0,c.src="https://www.google.com/recaptcha/api.js?onload=op3GrecaptchaInit&render="+e,t.parentNode.insertBefore(c,t)}else op3GrecaptchaInit()})}(jQuery,window,document);!function(t,n,e){var a=function(n){var e=t(n.target),a=e.closest("form").find('input[name="optin-tag"]'),i=t(n.target).val(),o=[];a.val()&&(o=a.val().split(",")),e.is(":checked")?o.push(i):o=o.filter(function(t){return t!=i}),a.val(o.join(","))},i=function(n){var e=t(n.target).closest("form").find('input[name="optin-tag"]'),a=t(n.target).val(),i=[];e.val()&&(i=e.val().split(",")),i=i.filter(function(t){return t!=a}),e.val(i.join(","))},o=function(n){var e=t(n.target),a=t(n.target).val(),i=e.closest("form").find('input[name="optin-tag"]'),o=[];i.val()&&(o=i.val().split(",")),o.push(a),i.val(o.join(","))};t(function(){t('[data-op3-element-type$="form"] form').each(function(){t(this).find('[data-op3-extra-field="1"][data-op3-extra-field-save-as="tag"]').each(function(){var n=t(this);n.find('[data-op3-element-type="checkbox"] input').on("change",a),n.find("select").on("select2:selecting",i).on("select2:select",o)})})})}(jQuery,window,document);!function(i,t,o){"use strict";if(void 0===i)throw"Missing dependency: jQuery\nhttps://code.jquery.com/";var n=function(i,t){if(!(this instanceof n))throw"Accordion: Accordion is a constructor.";this._element=i,this._options=t,this._init()};i.extend(n.prototype,{_defaults:{parent:null,questionClass:".question",answerClass:".answer",itemClass:".item",closeOthers:!0,animationDuration:200},_init:function(){for(var t in this._element=i(this._element).addClass("jquery-accordion").data("jquery-accordion",this).get(0),this._options=i.extend(!0,{},this._defaults,this._options),this._options)t in this._defaults||delete this._options[t];i(this._element).on("click.jqueryaccordion",this._options.questionClass,this._handleQuestionClick.bind(this)),i(this._element).trigger("jqueryaccordioninit")},_handleQuestionClick:function(t){t.stopPropagation();var o=i(t.currentTarget);this.toggle(o)},toggle:function(t){i(this._element).trigger("jqueryaccordiontoggle");var o=t.parent().find(this._options.answerClass).first(),n=t.closest(this._options.itemClass);this._options.closeOthers&&n.siblings().removeClass("jquery-accordion-active").find(this._options.answerClass).slideUp(this._options.animationDuration),n.toggleClass("jquery-accordion-active"),o.slideToggle(this._options.animationDuration),i(this._element).trigger("jqueryaccordiontoggled")},open:function(i){i.addClass("jquery-accordion-active").find(this._options.answerClass).first().slideDown(this._options.animationDuration)},close:function(i){i.removeClass("jquery-accordion-active").find(this._options.answerClass).first().slideUp(this._options.animationDuration)},destroy:function(){i(this._element).removeClass("jquery-accordion").removeData("jquery-accordion").trigger("jqueryaccordiondestroy"),this._element=null,this._options=null},options:function(i,t){if(!(i in this._options))throw"Accordion: invalid options key '"+i+"'";if(void 0===t)return this._options[i];this._options[i]=t}}),i.fn.accordion=function(t){var o=i(this),s=Array.prototype.slice.call(arguments,1);return o.each(function(){var e=i(this).data("jquery-accordion");if(e||(e=new n(this,"object"==typeof t?t:{})),"string"==typeof t){if(!("_"!==t.substr(0,1)&&t in e&&"function"==typeof e[t]))throw"Accordion: no method named '"+t+"'";var r=e[t].apply(e,s);if(void 0!==r)return o=r,!1}}),o}}(window.jQuery,window,document);!function(e,t,a){"use strict";e(function(){e('[data-op3-element-type="faq"]').each(function(){var t=e(this),a=t.find(".op3-faq-wrapper").attr("data-op3-close-other-tabs")||0;t.accordion({questionClass:".op3-faqitem-header",answerClass:".op3-faqitem-content",itemClass:'.op3-element[data-op3-element-type="faqitem"]',closeOthers:parseInt(a)})})})}(jQuery,window,document);!function(e,t){"use strict";e.EXITINTENT_OFFSET=24;t.addEventListener("mouseout",function(n){if(!(n.relatedTarget||n.clientY>EXITINTENT_OFFSET)){var c=function(n){n&&"object"==typeof n||(n={});var c=null,i={altKey:n.altKey||!1,bubbles:!1,button:n.button||0,buttons:n.buttons||0,cancelable:!1,clientX:n.clientX||0,clientY:n.clientY||0,ctrlKey:n.ctrlKey||!1,metaKey:n.metaKey||!1,offsetX:n.offsetX||0,offsetY:n.offsetY||0,pageX:n.pageX||0,pageY:n.pageY||0,relatedTarget:n.relatedTarget||null,screenX:n.screenX||0,screenY:n.screenY||0,shiftKey:n.shiftKey||!1,view:n.view||null,which:n.which||0,x:n.x||0,y:n.y||0};try{c=new MouseEvent("exitintent",i)}catch(n){(c=t.createEvent("MouseEvent")).initMouseEvent("exitintent",i.bubbles,i.cancelable,e,0,i.screenX,i.screenY,i.clientX,i.clientY,i.ctrlKey,i.altKey,i.shiftKey,i.metaKey,i.button,i.relatedTarget)}return c}(n);this.dispatchEvent(c)}})}(window,document);!function(t,e,i){"use strict";t(i).ready(function(){var i=t('[data-op3-element-type="video"]'),s=i.find("iframe");s.ready(function(){t('[data-op3-element-type="video"] .op3-video-image-overlay').on("click",o)}),s.ready(function(){t('[data-op3-element-type="video"] .op3-video-magic-overlay').on("click",a)}),t(e).on("beforeunload",function(){s.each(function(){var e=t(this).attr("src");e&&(e=e.replace("autoplay=1","autoplay=0"),t(this).attr("src",e))})});var d=t('[data-op3-video-sticky="1"]'),n=t('[data-op3-video-magic-overlay="1"]');if(i.attr("data-op3-video-sticky-active","0"),e.IntersectionObserver&&d.length>0){var c=function(t){t.css("height",t.height()+"px"),t.attr("data-op3-video-sticky-active","1"),setTimeout(function(){var e=t.find(".op3-video-wrapper");"fixed"===e.css("position")&&(t.find(".op3-video-image-overlay").css({height:e.height(),"max-width":e.width(),left:e.css("left"),right:e.css("right"),top:e.css("top"),bottom:e.css("bottom")}).attr("data-op3-video-sticky-position",e.attr("data-op3-video-sticky-position")).find(".op3-icon").css("font-size","70px"),n.length>0&&t.find(".op3-video-magic-overlay").css({height:e.height(),"max-width":e.width(),left:e.css("left"),right:e.css("right"),top:e.css("top"),bottom:e.css("bottom")}).attr("data-op3-video-sticky-position",e.attr("data-op3-video-sticky-position")).find(".op3-video-magic-overlay-image").css("display","none"))})},r=function(t){t.css("height","auto"),t.attr("data-op3-video-sticky-active","0"),setTimeout(function(){var e=t.find(".op3-video-image-overlay"),i=t.find(".op3-video-magic-overlay");e.css({height:"","max-width":"",left:"",right:"",top:"",bottom:""}).removeAttr("data-op3-video-sticky-position").find(".op3-icon").css("font-size",""),i.css({height:"","max-width":"",left:"",right:"",top:"",bottom:""}).removeAttr("data-op3-video-sticky-position").find(".op3-video-magic-overlay-image").css("width","").css("display","block")})};OP3.StickyVideo={},OP3.StickyVideo.observer=new IntersectionObserver(function(e,i){e.forEach(function(e){e.isIntersecting||e.boundingClientRect.y>0?r(t(e.target)):"1"!==t(e.target).attr("data-op3-video-sticky-closed")&&c(t(e.target))})}),d.each(function(){if("1"===t(this).attr("data-op3-video-sticky-close")){var e=t(this),i=e.closest(".op3-element").find(".op3-video-image-overlay");t('').appendTo(i.length?i:e)}OP3.StickyVideo.observer.observe(t(this).parent().get(0))}),t(e).on("resize",function(){d.each(function(){var e=t(this).parent();"0"!==e.attr("data-op3-video-sticky-active")&&(r(e),c(e))})}),t(".op3-video-sticky-close").on("click",function(e){var i=t(this).closest(".op3-element");i.attr("data-op3-video-sticky-closed","1"),r(i);var o=i.find("iframe");if(o.length>0){var a=o.attr("src");a&&(o.attr("src",""),o.attr("data-src",a),a=a.replace(/([\?&])autoplay=[01]/,"$1autplay=0"),o.attr("src",a),o.removeAttr("data-src"))}var s=i.find("video");s.length>0&&s.get(0).pause(),e.preventDefault()})}i.each(function(){var e=t(this),i=e.find(".op3-video-image-overlay");e.find('.op3-video-wrapper[data-op3-video-autoplay="1"]').length>0&&i.is(":visible")&&i.css("display","none")})}),t("video[data-op3-video-selfhosted]").each(function(e){var o=this;o.autoplay&&o.paused&&t(i).one("touchstart",function(){o.play()})});var o=function(e){if(!t(e.target).closest(".op3-video-sticky-close").length){var i=t(this).parent().find("iframe");if(t(this).addClass("op3-video-image-overlay-disabled").find(".op3-icon").css("display","none"),t(this).find(".op3-video-sticky-close").appendTo(t(this).closest(".op3-element").find('[data-op3-video-sticky="1"]')),!t(this).is(".embed-video-facade-interact"))if(i.length>0){var o=i.attr("src");o=-1!==o.indexOf("autoplay=0")?o.replace("autoplay=0","autoplay=1"):o+=(o.indexOf("?")>-1?"&":"?")+"autoplay=1",i.attr("src",o)}else{var a=t(this).parent().find("video");a.length>0&&a.get(0).play()}}},a=function(e){if(!t(e.target).closest(".op3-video-sticky-close").length){var i=t(this).parent().find("iframe");if(t(this).addClass("op3-video-magic-overlay-disabled"),t(this).find(".op3-video-sticky-close").appendTo(t(this).closest(".op3-element").find('[data-op3-video-sticky="1"]')),i.length>0){var o=i.attr("src");if(-1!==o.indexOf("autoplay=0"))o=o.replace("autoplay=0","autoplay=1");else o=o+=(o.indexOf("?")>-1?"&":"?")+"autoplay=1";return o=(o=(o=(o=(o=o.replace("muted=1","muted=0")).replace("mute=1","mute=0")).replace("loop=1","loop=0")).replace("muted=true","muted=false")).replace("endVideoBehavior=loop","endVideoBehavior=stop"),void i.attr("src",o)}var a=t(this).parent().find("video");a.length>0&&(a.get(0).currentTime=0,a.get(0).muted=!1,a.get(0).loop=!1,a.get(0).play())}}}(jQuery,window,document);